<template>
  <el-table
    ref="table"
    :data="list"
    style="width: 100%;margin-top:30px;"
    border="border"
  >
    <!-- 申请编号 -->
    <el-table-column align="center" label="申请编号" min-width="90" fixed>
      <template slot-scope="scope">
        {{ scope.row.reg_id }}
      </template>
    </el-table-column>
    <!-- 球队编号 -->
    <el-table-column align="center" label="球队编号" min-width="95">
      <template slot-scope="scope">
        {{ scope.row.t_id }}
      </template>
    </el-table-column>
    <!-- 审核状态 -->
    <el-table-column align="center" label="审核状态" min-width="110">
      <template slot-scope="scope">
        {{ scope.row.reg_status }}
      </template>
    </el-table-column>
    <!-- 提交时间 -->
    <el-table-column align="center" label="提交时间" min-width="85">
      <template slot-scope="scope">
        {{ scope.row.reg_time }}
      </template>
    </el-table-column>
    <!-- 球队注册表 -->
    <el-table-column align="center" label="球队注册表" min-width="200" fixed="right">
      <template slot-scope="scope">
        <el-tooltip content="Click the button will edit" placement="top">
          <el-button
            type="primary"
            icon="el-icon-edit"
            size="mini"
            @click="handleCheck(scope)"
          >审核
          </el-button>
        </el-tooltip>
      </template>
    </el-table-column>
  </el-table>
</template>

<script>

export default {
  name: 'RegisterInformation',
  props: {
    list: {
      type: Array,
      required: true
    }
  },
  methods: {
    handleCheck() {
      // emit event
    }
  }
}
</script>

<style scoped>

</style>
